<div ng-controller="SchemaCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="">{{'预约'| translate}}</a></li>
        <li class="active">
            预约项目
            <a href="#/schema/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
             <a href="#/schema/batch" id="addNew" class="sui-btn btn-primary">{{'批量定制项目周期' | translate}}</a>
        </li>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'类型名称'|translate}}</th>
                <th>{{'所属于类型'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(ke,list) in schemas">
                <td>{{ke+1}}</td>
                <td>{{list.name}}</td>
                <td>
                    <schematype-get ng-model="list.schema_type_id" stype="1"></schematype-get>
                </td>
                <td>
                    <a href="#/schema/add?schema_id={{list.schema_id}}" class="sui-btn btn-primary">{{'编辑'|translate}}</a>
                    <basic-settings schemaid="list.schema_id" name="{{list.name}}" ></basic-settings>
                    <!--  <button class="sui-btn btn-success" ng-click="stltodat(list.schema_id,$event)">
                        {{'生成数据'|translate}}
                    </button> -->
                    <private-data schemaid="list.schema_id" name="{{list.name}}"></private-data>
                    <button class="sui-btn btn-danger" ng-click="del(list.schema_id)">{{'删除'|translate}}</button>
                </td>
            </tr>
        </tbody>

    </table>
    <pager page-no="1" page-size="pageSize" total="storeTotal" get-data="getlist(pageNo)"></pager>
</div>